﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Hellquest
{
    public static class MathUtils
    {
        public static Random Random = new Random();

        public static void IntegrateVerlet(ref Vector2 _acceleration, ref Vector2 _velocity, ref Vector2 _position, float _timeDiff)
        {
            _position += _velocity * _timeDiff + (_acceleration / 2) * _timeDiff * _timeDiff;
            _velocity += _acceleration * _timeDiff;
        }
    }
}
